package com.study.talk.netty.message.response;

import com.study.common.annotation.Desc;
import com.study.talk.netty.message.MessageType;
import com.study.talk.netty.message.TalkMessage;

@Desc("同意加入群聊消息响应")
public class AcceptGroupResponse extends TalkMessage {

    @Desc("同意加入群聊用户id")
    private Integer acceptUserId;

    @Desc("同意加入群聊用户昵称")
    private String acceptUserName;

    @Desc("群聊id")
    private Integer groupId;

    @Desc("群聊名称")
    private String groupName;

    @Desc("是否同意")
    private Boolean success;

    @Override
    public byte getType() {
        return MessageType.ACCEPT_GROUP_RESPONSE;
    }


    public AcceptGroupResponse(Integer acceptUserId, String acceptUserName, Integer groupId, String groupName,Boolean success) {
        this.acceptUserId = acceptUserId;
        this.acceptUserName = acceptUserName;
        this.groupId = groupId;
        this.groupName = groupName;
        this.success = success;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public AcceptGroupResponse() {
    }

    public Integer getAcceptUserId() {
        return acceptUserId;
    }

    public void setAcceptUserId(Integer acceptUserId) {
        this.acceptUserId = acceptUserId;
    }

    public String getAcceptUserName() {
        return acceptUserName;
    }

    public void setAcceptUserName(String acceptUserName) {
        this.acceptUserName = acceptUserName;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }
}
